Page({
  data: {
    remark: ''
  },

  onLoad(options) {
    this.setData({
      ...options
    });
  },

  handleInput(e) {
    let {
      value
    } = e.detail;
    this.setData({
      remark: value
    });
  },

  confirm() {
    let pages = getCurrentPages();
    let prevPage = pages[pages.length - 2];
    prevPage.setData({
      remark: this.data.remark
    });
    wx.navigateBack({
      delta: 1
    });
  }
})